package training02;

public class Player {
    public static void main(String[] args) {
        Farmer farmer = new Farmer("张三",10);
        farmer.intro();

        Doctor doctor = new Doctor("李四",20);

        Soldier soldier = new Soldier("兰博",30);
        farmer.attack(doctor);
        farmer.attack(soldier);
        soldier.defend(farmer);
    }
}
